<?php
include $_SERVER['DOCUMENT_ROOT'].'/Classes/PHPExcel/IOFactory.php';



// Open Excel file
$inputFileName = './excels/2007312580_20141223174639_206631.xls';

//  Read your Excel workbook
try {
	$inputFileType = PHPExcel_IOFactory::identify($inputFileName);
	$objReader = PHPExcel_IOFactory::createReader($inputFileType);
	$objPHPExcel = $objReader->load($inputFileName);
} catch(Exception $e) {
	die('Error loading file "'.pathinfo($inputFileName,PATHINFO_BASENAME).'": '.$e->getMessage());
}

//  Get worksheet dimensions
$sheet = $objPHPExcel->getSheet(0);
$highestRow = $sheet->getHighestRow();
$highestColumn = $sheet->getHighestColumn();

//  Loop through each row of the worksheet in turn
for ($row = 2;  $row<=5; $row++){
	//  Read a row of data into an array
	$rowData = $sheet->rangeToArray('A' . $row . ':' . $highestColumn . $row,
			NULL,
			TRUE,
			FALSE);
	echo ($row." ".$rowData[0][0]." ".$rowData[0][1]."</br>");
	//print_r($rowData);echo "</br>";
	//  Insert row data array into your database of choice here
}
?>